import request from '@/utils/request'

// 查询出货检管理列表
export function listOutboundInspection(query) {
  return request({
    url: '/qualityManagement/outboundInspection/list',
    method: 'get',
    params: query
  })
}

// 查询出货检管理详细
export function getOutboundInspection(inspectionId) {
  return request({
    url: '/qualityManagement/outboundInspection/' + inspectionId,
    method: 'get'
  })
}

// 新增出货检管理
export function addOutboundInspection(data) {
  return request({
    url: '/qualityManagement/outboundInspection',
    method: 'post',
    data: data
  })
}

// 修改出货检管理
export function updateOutboundInspection(data) {
  return request({
    url: '/qualityManagement/outboundInspection',
    method: 'put',
    data: data
  })
}

// 删除出货检管理
export function delOutboundInspection(inspectionId) {
  return request({
    url: '/qualityManagement/outboundInspection/' + inspectionId,
    method: 'delete'
  })
}
